from django.shortcuts import render_to_response
from django.http import HttpResponse

from orangeademusic.news.models import Post
	

def accueil(request):
	""" 
	Accueil d'orangeade.
	Affiche les dernieres news, derniers articles et prochains concerts
	"""
	last_news = Post.objects.all().order_by('-date')[:5]
	return render_to_response('accueil.html', locals())